package com.itheima.service;

import com.itheima.common.PageBean;
import com.itheima.pojo.Emp;

import java.time.LocalDate;
import java.util.List;

/**
 * 员工管理
 */
public interface EmpService {

    /**
     * Page page bean.
     *
     * @param name     the name
     * @param gender   the gender
     * @param begin    the begin
     * @param end      the end
     * @param page     the page
     * @param pageSize the page size
     * @return the page bean
     */
    PageBean<Emp> page(String name, Short gender, LocalDate begin, LocalDate end, Integer page, Integer pageSize);

    /**
     * Remove batch.
     *
     * @param ids the ids
     */
    void removeBatch(List<String> ids);

    /**
     * Create.
     *
     * @param emp the emp
     */
    void create(Emp emp);

    /**
     * Query by id emp.
     *
     * @param id the id
     * @return the emp
     */
    Emp queryById(Integer id);

    /**
     * Update.
     *
     * @param emp the emp
     */
    void update(Emp emp);

    /**
     * Login string.
     *
     * @param emp the emp
     * @return the string
     */
    String login(Emp emp);

    /**
     * Delete by dept id.
     *
     * @param id the id
     */
    void deleteByDeptId(Integer id);
}
